/**
* @file dispatcher.h
*
* @brief function declarations and defines for example embedded dispatcher implementation
*
* Copyright ?2011 HID Corporation.  All rights reserved.
*
* This software is protected by copyright law and international treaties.
* Any unauthorized reproduction, distribution or use of the software is prohibited.
*
*/

#ifndef DISPATCHER_H_
#define DISPATCHER_H_

#include"types.h"

#define SAM_CLA			((uint8_t)0xA0) // Proprietary
#define SAM_INS			((uint8_t)0xDA) // PUT DATA
#define SAM_P1			((uint8_t)0x02) // Simple TLV Tag
#define SAM_P2			((uint8_t)0x63) // Wrapper

#define P3_LENGTH               3
#define LE_LENGTH               2


typedef enum {_FALSE, _TRUE}T_BOOL;
typedef enum {RFOFF, RFON}RfStates;



int api_Dispatch(uint8_t * tbuf, uint8_t tlen, uint8_t * rbuf, uint8_t * rlen);
int api_Dispatch2(uint8_t wdt, uint8_t * cbuf, uint16_t clen, uint8_t ** rbuf, uint16_t * rlen);

int api_getVersionInfo(uint8_t * version, uint16_t * versionLen);


#endif /* DISPATCHER_H_ */

